package com.video.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.video.common.annotation.Excel;
import com.video.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户对象 video_user
 * 
 * @author lyh
 * @date 2021-07-31
 */
public class VideoUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Integer uId;

    /** 用户编码 */
    @Excel(name = "用户编码")
    private String userCode;

    /** 用户密码 */
    @Excel(name = "用户密码")
    private String password;

    /** 用户性别 */
    @Excel(name = "用户性别")
    private String sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date barthday;

    /** 用户电话 */
    @Excel(name = "用户电话")
    private String phone;

    /** 用户地址 */
    @Excel(name = "用户地址")
    private String address;

    /** 学历编码 */
    @Excel(name = "学历编码")
    private Integer educationCode;

    /** 角色编码 */
    @Excel(name = "角色编码")
    private Integer roleCode;

    public void setuId(Integer uId) 
    {
        this.uId = uId;
    }

    public Integer getuId() 
    {
        return uId;
    }
    public void setUserCode(String userCode) 
    {
        this.userCode = userCode;
    }

    public String getUserCode() 
    {
        return userCode;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setBarthday(Date barthday) 
    {
        this.barthday = barthday;
    }

    public Date getBarthday() 
    {
        return barthday;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setEducationCode(Integer educationCode) 
    {
        this.educationCode = educationCode;
    }

    public Integer getEducationCode() 
    {
        return educationCode;
    }
    public void setRoleCode(Integer roleCode) 
    {
        this.roleCode = roleCode;
    }

    public Integer getRoleCode() 
    {
        return roleCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("uId", getuId())
            .append("userCode", getUserCode())
            .append("password", getPassword())
            .append("sex", getSex())
            .append("barthday", getBarthday())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("educationCode", getEducationCode())
            .append("roleCode", getRoleCode())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
